package artid.com.arttogo.bean;

import java.io.Serializable;

import org.json.JSONObject;

public class MoneyPay extends AppItem implements Serializable {
	int state;
	String url;
	String pay_sn;
	private String appid;//应用ID
	private String noncestr;//随机字符串
	private String packages;//扩展字段
	private String partnerid;//商户号
	private String prepayid;//预支付交易会话ID
	private String timestamp;//时间戳
	private String sign;//签名
	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		appid = obj.optString("appid");
		noncestr = obj.optString("noncestr");
		packages = obj.optString("packages");
		partnerid = obj.optString("partnerid");
		prepayid = obj.optString("prepayid");
		timestamp = obj.optString("timestamp");
		sign = obj.optString("sign");
		state = obj.optInt("state");
		url = obj.optString("url");
		pay_sn = obj.optString("pay_sn");
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getNoncestr() {
		return noncestr;
	}
	public void setNoncestr(String noncestr) {
		this.noncestr = noncestr;
	}
	public String getPackages() {
		return packages;
	}
	public void setPackages(String packages) {
		this.packages = packages;
	}
	public String getPartnerid() {
		return partnerid;
	}
	public void setPartnerid(String partnerid) {
		this.partnerid = partnerid;
	}
	public String getPrepayid() {
		return prepayid;
	}
	public void setPrepayid(String prepayid) {
		this.prepayid = prepayid;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public MoneyPay() {
		super();
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPay_sn() {
		return pay_sn;
	}

	public void setPay_sn(String pay_sn) {
		this.pay_sn = pay_sn;
	}
	

}
